import request from '@/utils/request'

// 获取所有升级信息
export function fetchList(data) {
  return request({
    url: '/api/admin/upgrade/getAllUpgrades',
    method: 'post',
    data
  })
}

// 添加
export function addUPgrade(data) {
  return request({
    url: '/api/admin/upgrade/addUPgrade',
    method: 'post',
    data
  })
}

// 修改 更新帮助信息详情
export function updateUPgrade(data) {
  return request({
    url: '/api/admin/upgrade/updateInfo',
    method: 'post',
    data
  })
}

// 删除帮助信息
export function deleteUpgradeInfo(data) {
  return request({
    url: '/api/admin/upgrade/deleteUpgradeInfo',
    method: 'post',
    params: data
  })
}